import request from '@/utils/request'

// 查询订单列表
export function listOrder(query) {
  return request({
    url: '/trade/refund/list',
    method: 'get',
    params: query
  })
}

// 查询订单列表
export function refund(id) {
  return request({
    url: '/trade/refund/' + id,
    method: 'get'
  })
}


// 退款
export function refundOrder(data) {
  return request({
    url: '/trade/refund/refundFromOrder',
    method: 'post',
    data: data
  })
}

// 审核用户退款
export function auditRefund(data) {
  return request({
    url: '/trade/refund/refundFromAudit',
    method: 'post',
    data: data
  })
}
